package com.itheima.service;

import com.itheima.pojo.Question;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


public interface QuestionService {

    /**
     * @Author: Administrator
     * @Date: 16:57 2021/2/4
     * @Parms [question]
     * @ReturnType: void
     * @Description: 添加问答
    */
    void addQuestion(@RequestBody Question question);

    /**
     * @Author: Administrator
     * @Date: 16:57 2021/2/4
     * @Parms [title]
     * @ReturnType: java.util.List<java.lang.String>
     * @Description: 根据问题查询答案
    */
    List<String> findAnswerByTitle(String title);
}
